//
//  SLMineViewModel.h
//  StarLight
//
//  Created by Duke.wu on 16/5/12.
//  Copyright © 2016年 Duke.Wu. All rights reserved.
//

#import <Foundation/Foundation.h>


@class SLMineUserIndexModel;

@class Banner;

typedef void(^UserIndexComplete)(id respond, NSError *error);

@interface SLMineViewModel : NSObject

@property (nonatomic, strong) SLMineUserIndexModel *indexModel;

+ (instancetype)shareInstance;

- (void)getUserindex;

/**
 *  用户首页
 */
- (void)getUserindexCallBack:(UserIndexComplete)block;



@end



@interface SLMineUserIndexModel : NSObject

@property (nonatomic, strong) NSString *time;
/**消息数*/
@property (nonatomic, assign) NSInteger mesnum;
/**消息数*/
@property (nonatomic, assign) NSInteger hynum;
/**反馈数*/
@property (nonatomic, assign) NSInteger backnum;

@property (nonatomic, assign) NSInteger Id;
/**帐户类型*/
@property (nonatomic, assign) NSInteger role;
/**用户类型  0-船主*/
@property (nonatomic, assign) NSInteger type;
/**用户头像*/
@property (nonatomic, copy) NSString *headPhoto;
/**用户名*/
@property (nonatomic, copy) NSString *name;

@property (nonatomic ,copy) NSString *active;

@property (nonatomic ,copy) NSString *gzhnum;

@property (nonatomic ,copy) NSString *hdnum;

@property (nonatomic ,copy) NSString *mgznum;

@property (nonatomic ,copy) NSString *phone;

@property (nonatomic ,copy) NSString *popularity;

@property (nonatomic ,assign) NSInteger vitality;

@property (nonatomic ,strong) NSArray <Banner *> *banner;


@end

@interface Banner : NSObject

@property (nonatomic ,copy) NSString *conturl;

@property (nonatomic ,copy) NSString *imagurl;

@end






